import java.util.Scanner;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        System.out.println(add(a,b));;
        double a1 = scanner.nextDouble();
        double b1 = scanner.nextDouble();
        double c1 = scanner.nextDouble();
        System.out.println(add(a1,b1,c1));

    }
    public static int add(int a,int b){
        return a > b ?a : b;
    }
    public static double add(double a,double b,double c){
        if(a > b&&a > c){
            return a;
        }else if(b > a&&b > c){
            return b;
        }else{
            return c;
        }
    }
}